package com.matrix.geo.playmysqlgeo.domain.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.locationtech.jts.geom.Point;

import java.io.Serial;

@Data
@EqualsAndHashCode(callSuper = false)
@TableName(value = "object_point",autoResultMap = true)
public class ObjectPointPO extends Model<ObjectPointPO> {

    @Serial
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    @TableId(type = IdType.AUTO)
    private Long id;

    /** 名称 */
    private String name;

    // /** 点坐标 */
    // private Double longitude; // 经度
    // private Double latitude; // 纬度

    /** 几何对象 */
    private Point geom;
}
